<?php 
define('PAGE_NEED_PRI','PRI_EDIT');
session_start();
include_once("main.php");
include_once("blog-main-page-function.php");
?>
<?php
	if(!isset($_REQUEST['articleID']))
		exit("Please specify acticle id.");
	$articleID = intval($_REQUEST['articleID']);
	$action = isset($_REQUEST['action'])?$_REQUEST['action']:'';
	switch($action )
	{
		case 'new':
			$info = array('newsid'=>$articleID,'id'=>'','content'=>'');
		break;
		default:
			$info = get_article_page_info($_REQUEST['id']);
		break;
	}

	$articleInfo = get_article_info($articleID);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> Bios 管理中心 </title>
<link href="../css/control2.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="all"><!--Wrap start //-->
<div id="main" class="clearfix"><!--main start //-->
 <?php include_once('top_btn.php');?>
 <?php include_once('blog-main-page-btn.php');?>
  <div id="contact-add"><!--start contact //-->
<form name="form1" method="post" action="blog-main-page.php">
<input type="hidden" name="articleID" value="<?php echo $articleID;?>"/>
<input type="hidden" name="id" value="<?php echo $info['id'];?>"/>
<input type="hidden" name="action" value="save"/>
<div class="contact-add-line">
文章標題：<input name="title" type="text" class="contact_add-tit-keyin" value="<?php echo html_safe($articleInfo['title']);?>"  /><br />
<?php 
include('../fckeditor/fckeditor.php');
	$oFCKeditor = new FCKeditor('FCKeditor1')  ; 
	$oFCKeditor->BasePath = '../fckeditor/' ;    
	$oFCKeditor->ToolbarSet = 'Default' ; 
	$oFCKeditor->InstanceName = 'content' ; 
	$oFCKeditor->Width = '100%' ; 
	$oFCKeditor->Height = '400' ; 
	$oFCKeditor->Value  = stripslashes($info['content']); 
	//$oFCKeditor->Value  = $row->content; 
$oFCKeditor->Create();?>
</div>
<input type="submit"/>
</form>

  </div><!--end contact //-->
</div><!-- main end //-->
</div><!--Wrap end //-->
<div id="botton">
<?php include_once('botton_btn.php');?>
</div>
</body>
</html>